package group.hhsw.feign.clients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("userproductservice")
public interface UserProductClient {

    @GetMapping("/userproduct/getUserPurchaseAmount")
    Long getUserPurchaseAmount(@RequestParam("account") String account,
                                      @RequestParam("productId") String productId);
}
